//
//  HMDiscoverTableViewController.swift
//  Weibo24
//
//  Created by Apple on 17/3/25.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

class HMDiscoverTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupNavUI()
    }
    
    //  添加导航栏按钮
    fileprivate func setupNavUI() {
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", target: self, action: #selector(registerAction))
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "登录", target: self, action: #selector(loginAction))
        
    }
    
    //  MARK:   --点击导航栏按钮事件处理
    @objc private func registerAction() {
        print("注册")
    }
    
    @objc private func loginAction() {
        print("登录")
    }

}
